AVEVA OMI Software Developer Kit



ArchestrA.Client.RuntimeData Namespace > DataReference Class > Write Method : Write(Object,Int32,Action<DataReference,StatusSettingType>) Method
The value to be written
The 1-based index of array element (the index of the first element in array is 1)
The call back for the write status. The DataReference is the reference to be written; The StatusSettingType contains the status of the Write operation.
Write(Object,Int32,Action<DataReference,StatusSettingType>) Method
Initiate the process to write the value to the element of the referenced array. System will call back to update the write status thereafter.
Syntax
'Declaration
 
Public Overloads MustOverride Function Write( _
   ByVal value As Object, _
   ByVal elementIndex As Integer, _
   ByVal writeStatusChangedAction As Action(Of DataReference,StatusSettingType) _
) As WriteOperationStatus
'Usage
 
Dim instance As DataReference
Dim value As Object
Dim elementIndex As Integer
Dim writeStatusChangedAction As Action(Of DataReference,StatusSettingType)
Dim value As WriteOperationStatus
 
value = instance.Write(value, elementIndex, writeStatusChangedAction)

Parameters

value
The value to be written
elementIndex
The 1-based index of array element (the index of the first element in array is 1)
writeStatusChangedAction
The call back for the write status. The DataReference is the reference to be written; The StatusSettingType contains the status of the Write operation.

Return Value

The status of the initiation process
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also